package design.p22_mediator;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-20 12:54
 **/
public  class MyMediator implements Mediator{

    private User1 user1;

    public User1 getUser1() {
        return user1;
    }

    @Override
    public void createMediator() {
        user1 = new User1(this);
    }

    @Override
    public void workAll() {
        user1.work();
    }
}

